let mapUrl = import.meta.env.VITE_MAP_URL
export const initMapStyle = minemap => {
  if (import.meta.env.VITE_ENV === 'prod') {
    // 张家口内网地图服务(视频网环境,预发布环境)
    minemap.domainUrl = mapUrl
    minemap.dataDomainUrl = mapUrl
    minemap.serverDomainUrl = mapUrl
    ;(minemap.spriteUrl = mapUrl + '/minemapapi/v2.0.0/sprite/sprite'),
      (minemap.serviceUrl = mapUrl + 'service/'),
      (minemap.appKey = '33b32339e9664063806ffdbb62c07ed9'),
      (minemap.solution = 12756),
      (minemap.mapStyle = mapUrl + '/service/solu/style/id/12756')
  } else if (import.meta.env.VITE_ENV === 'development') {
    // 测试环境地图服务(外网环境)
    minemap.domainUrl = mapUrl
    minemap.dataDomainUrl = mapUrl
    minemap.serverDomainUrl = 'https://sd-data.minedata.cn'
    ;(minemap.spriteUrl = mapUrl + '/minemapapi/v2.1.1/sprite/sprite'),
      (minemap.serviceUrl = 'https://service.minedata.cn/service'),
      (minemap.key = '6adca2e286fd44f48c9cda662078a84c'),
      (minemap.solution = 1024714520283086848),
      (minemap.mapStyle = 'https://service.minedata.cn/map/solu/style/1024714520283086848')
  }
  return minemap
}
